Optimal. Leaf size=103 \[ -\frac{1}{4} \left (2-\tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{(a+2 b) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )}{4 \sqrt{b}}+\frac{1}{2} \sqrt{a+b} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.206797, antiderivative size = 103, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.412, Rules used = {3670, 1252, 815, 844, 217, 206, 725} \[ -\frac{1}{4} \left (2-\tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{(a+2 b) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )}{4 \sqrt{b}}+\frac{1}{2} \sqrt{a+b} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 1252
Rule 815
Rule 844
Rule 217
Rule 206
Rule 725
Rubi steps
\begin{align*} \int \tan ^3(x) \sqrt{a+b \tan ^4(x)} \, dx &=\operatorname{Subst}\left (\int \frac{x^3 \sqrt{a+b x^4}}{1+x^2} \, dx,x,\tan (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{x \sqrt{a+b x^2}}{1+x} \, dx,x,\tan ^2(x)\right )\\ &=-\frac{1}{4} \left (2-\tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{\operatorname{Subst}\left (\int \frac{-a b+b (a+2 b) x}{(1+x) \sqrt{a+b x^2}} \, dx,x,\tan ^2(x)\right )}{4 b}\\ &=-\frac{1}{4} \left (2-\tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{1}{2} (-a-b) \operatorname{Subst}\left (\int \frac{1}{(1+x) \sqrt{a+b x^2}} \, dx,x,\tan ^2(x)\right )+\frac{1}{4} (a+2 b) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^2}} \, dx,x,\tan ^2(x)\right )\\ &=-\frac{1}{4} \left (2-\tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{1}{2} (a+b) \operatorname{Subst}\left (\int \frac{1}{a+b-x^2} \, dx,x,\frac{a-b \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )+\frac{1}{4} (a+2 b) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )\\ &=\frac{(a+2 b) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )}{4 \sqrt{b}}+\frac{1}{2} \sqrt{a+b} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right )-\frac{1}{4} \left (2-\tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}\\ \end{align*}
Mathematica [A] time = 3.67383, size = 145, normalized size = 1.41 \[ \frac{1}{4} \left (\frac{\frac{a^{3/2} \sqrt{\frac{b \tan ^4(x)}{a}+1} \sinh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a}}\right )}{\sqrt{b}}+\left (\tan ^2(x)-2\right ) \left (a+b \tan ^4(x)\right )}{\sqrt{a+b \tan ^4(x)}}+2 \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )+2 \sqrt{a+b} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.085, size = 181, normalized size = 1.8 \begin{align*}{\frac{ \left ( \tan \left ( x \right ) \right ) ^{2}}{4}\sqrt{a+b \left ( \tan \left ( x \right ) \right ) ^{4}}}+{\frac{a}{4}\ln \left ( \sqrt{b} \left ( \tan \left ( x \right ) \right ) ^{2}+\sqrt{a+b \left ( \tan \left ( x \right ) \right ) ^{4}} \right ){\frac{1}{\sqrt{b}}}}-{\frac{1}{2}\sqrt{b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) ^{2}-2\,b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) +a+b}}+{\frac{1}{2}\sqrt{b}\ln \left ({(b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) -b){\frac{1}{\sqrt{b}}}}+\sqrt{b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) ^{2}-2\,b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) +a+b} \right ) }+{\frac{1}{2}\sqrt{a+b}\ln \left ({\frac{1}{1+ \left ( \tan \left ( x \right ) \right ) ^{2}} \left ( 2\,a+2\,b-2\,b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) +2\,\sqrt{a+b}\sqrt{b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) ^{2}-2\,b \left ( 1+ \left ( \tan \left ( x \right ) \right ) ^{2} \right ) +a+b} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \tan \left (x\right )^{4} + a} \tan \left (x\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.67354, size = 1443, normalized size = 14.01 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a + b \tan ^{4}{\left (x \right )}} \tan ^{3}{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22797, size = 144, normalized size = 1.4 \begin{align*} \frac{1}{4} \, \sqrt{b \tan \left (x\right )^{4} + a}{\left (\tan \left (x\right )^{2} - 2\right )} - \frac{{\left (a + b\right )} \arctan \left (-\frac{\sqrt{b} \tan \left (x\right )^{2} - \sqrt{b \tan \left (x\right )^{4} + a} + \sqrt{b}}{\sqrt{-a - b}}\right )}{\sqrt{-a - b}} - \frac{{\left (a \sqrt{b} + 2 \, b^{\frac{3}{2}}\right )} \log \left ({\left | -\sqrt{b} \tan \left (x\right )^{2} + \sqrt{b \tan \left (x\right )^{4} + a} \right |}\right )}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]